package ch.vd.dec.selt.petale

class BaseLegale {

	String name
	String description

	static mapping = {
		table 'TBL_FAC'
		nname column:'name'
		description column:'label', type: 'text'
		id generator:'sequence', params:[sequence: 'TBL_FAC_SEQ']
		version true
	}

    static constraints = {
		name(blank: false, size: 3..10, unique: true)
		description(nullable: true, maxSize: 4000)
    }
	
	String toString(){
		return name
	}
}
